//
//  Person.m
//  OC3_继承与初始化方法作业第二题
//
//  Created by 徐国庆 on 14-11-4.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Person.h"

@implementation Person

// 声明设置器方法
- (void)setHunband:(NSString *)hunband
{
    _hunband = hunband;
}
- (void)setWife:(NSString *)wife
{
    _wife = wife;
}
- (void)setSon:(NSString *)son
{
    _son = son;
}
- (void)setFather:(NSString *)father
{
    _father = father;
}
- (void)setMother:(NSString *)mother
{
    _mother = mother;
}
- (void)setName:(NSString *)name
{
    _name = name;
}
- (void)setSex:(NSString *)sex
{
    _sex = sex;
}
- (void)setAge:(int)age
{
    _age = age;
}

// 声明访问器方法
- (NSString *)hunband
{
    return _hunband;
}
- (NSString *)wife
{
    return _wife;
}
- (NSString *)son
{
    return  _son;
}
- (NSString *)father
{
    return _father;
}
- (NSString *)mother
{
    return _mother;
}
- (NSString *)name
{
    return _name;
}
- (NSString *)sex
{
    return _sex;
}
- (int)age
{
    return _age;
}
// 声明指定初始化
- (id)initWithHunband:(NSString *)hunband wife:(NSString *)wife son:(NSString *)son father:(NSString *)father mother:(NSString *)mother name:(NSString *)name sex:(NSString *)sex age:(int)age
{
    self = [super init];
    if (self != nil) {
        _hunband = hunband;
        _wife = wife;
        _son = son;
        _father = father;
        _mother = mother;
        _name = name;
        _sex = sex;
        _age = age;
    }
    return self;
}



























@end
